﻿//The format  MM/DD/YYYY HH:MM AM/PM  (i.e. "07/30/2007 4:32PM").
function postTime() {
	trace("\n\npostTime: ");
	//time calculation used for date stamping printed certificates
	var today:Date = new Date();
	theMonth = today.getMonth()+1;
	theHour = Math.abs(today.getHours()-12);
	theMinutes = today.getMinutes();
	if (theMinutes<10) {
		theMinutes = "0"+theMinutes;
	}
	var meridianPos:String = "AM";
	if (today.getHours()>12) {
		meridianPos = "PM";
	}
	var dateTimeStamp:String = theMonth+"/"+today.getDate()+"/"+today.getFullYear()+" "+theHour+":"+theMinutes+meridianPos;
	trace("dateTimeStamp: "+dateTimeStamp);
}